// #ifndef VUE3
import Vue from 'vue'
import App from './App'

import common from './utils/common.js'
import share from './utils/share.js'

//为true输出日志
export const DEBUG = true;

//打印日志
Vue.prototype.clog = function(data) {
	if (DEBUG) {
	    if (typeof (data) == "object") {
	        console.log(JSON.stringify(data)); //console.log(JSON.stringify(data, null, 4));
	    } else {
	        console.log(data);
	    }
	}
};

Vue.config.productionTip = false

App.mpType = 'app'

// 引入全局uView
import uView from 'uview-ui';
Vue.use(uView);

const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import App from './App.vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
